package com.fly.bean;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class DamageRecord {
    //    塔损害记录Id
    private Integer DamageRecordId;
    //    缺陷类型ID
    private Defects defects;
    //    缺陷描述
    private String defectsDescribe;
    //缺陷等级 一般 紧急 严重  这是pole表中的属性
    private String defectsLevel;
    //    发现用户id
    private Users users;
    //    发现时间
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date findDate;
    //    1为已解决 0为未解决
    private int damageState;

    //对应的电线杆
    private Pole pole;

    private PoleFixRelation poleFixRelation;

    public Pole getPole() {
        return pole;
    }

    public void setPole(Pole pole) {
        this.pole = pole;
    }

    public Integer getDamageRecordId() {
        return DamageRecordId;
    }

    public void setDamageRecordId(Integer damageRecordId) {
        DamageRecordId = damageRecordId;
    }

    public Defects getDefects() {
        return defects;
    }

    public void setDefects(Defects defects) {
        this.defects = defects;
    }

    public Users getUsers() {
        return users;
    }

    public void setUsers(Users users) {
        this.users = users;
    }

    public String getDefectsDescribe() {
        return defectsDescribe;
    }

    public void setDefectsDescribe(String defectsDescribe) {
        this.defectsDescribe = defectsDescribe;
    }

    public String getDefectsLevel() {
        return defectsLevel;
    }

    public void setDefectsLevel(String defectsLevel) {
        this.defectsLevel = defectsLevel;
    }

    public Date getFindDate() {
        return findDate;
    }

    public void setFindDate(Date findDate) {
        this.findDate = findDate;
    }

    public int getDamageState() {
        return damageState;
    }

    public void setDamageState(int damageState) {
        this.damageState = damageState;
    }

    public PoleFixRelation getPoleFixRelation() {
        return poleFixRelation;
    }

    public void setPoleFixRelation(PoleFixRelation poleFixRelation) {
        this.poleFixRelation = poleFixRelation;
    }
}
